package com.xnsy.jishexiangmu.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    // 主键uid
    private Integer uid;
    // 用户名
    @Pattern(regexp = "^\\S{5,16}$")
    @NotEmpty
    private String username;
    // 用户密码
    @Pattern(regexp = "^\\S{5,16}$")
    @NotEmpty
    private String password;
    // 用户注册时间
    private LocalDateTime registerTime;
    // 用户修改时间
    private LocalDateTime updateTime;
    // 用户认证信息
    private String authentication;
    // 是否为管理员你
    private Integer isroot;
    private  String toWhere;
}
